package com.ruoyi.yl.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.yl.domain.vo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Author: linKe
 * @Date: 2022/2/19 22:04
 * @FileName: YlChangePrice
 * @version: 1.0
 * @Description: 药品价格信息改变表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "yl_drug_change_price")
public class YlChangePrice extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /**
     * 主键 序号
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 药品编号（手动插入） */
    private Long drugNo;

    /** 药品通用名 */
    @ApiModelProperty(value = "药品通用名")
    private String drugName;

    /** 入库单号 */
    @ApiModelProperty(value = "入库单号")
    private String stockNo;

    /** 药品规格 */
    @ApiModelProperty(value = "药品规格")
    private String specification;

    /** 库存量 */
    @ApiModelProperty(value = "库存量")
    private Long drugStock;

    /** 批号 */
    @ApiModelProperty(value = "批号")
    private String batchNo;

    /** 采购价 */
    @ApiModelProperty(value = "采购价")
    private BigDecimal purchasePrice;

    /** 原零售价 */
    @ApiModelProperty(value = "原零售价")
    private BigDecimal oldSalePrice;

    /** 现零售价 */
    @ApiModelProperty(value = "现零售价")
    private BigDecimal nowSalePrice;

    /** 差价 */
    @ApiModelProperty(value = "差价")
    private BigDecimal differ;

    /** 比例 */
    @ApiModelProperty(value = "比例")
    private BigDecimal rate;

}